TARGET = P2PPunchingServer
TEMPLATE = app
QT -= gui core
HEADERS += inc/UDTServer.h \
    inc/P2PServerApp.h \
    inc/cc.h \
    inc/UDTSubsystem.h \
    inc/StopRootApplicationNotification.h \
    inc/GenericServerApp.h \
    inc/ApplicationStartingNotification.h \
    inc/Network/RootRequestHandlerFactory.h \
    inc/Network/P2PGetSessionRequestHandler.h \
    inc/Network/NetworkSubsystem.h \
    inc/BaseSubsystem.h

SOURCES +=       src/P2PServerApp.cpp \    
    src/UDTSubsystem.cpp \
    src/UDTServer.cpp \
    src/GenericServerApp.cpp \
    src/BaseSubsystem.cpp \
    src/Network/RootRequestHandlerFactory.cpp \
    src/Network/P2PGetSessionRequestHandler.cpp \
    src/Network/NetworkSubsystem.cpp\
    src/UDPServer.cpp

# src/main.cpp 
CONFIG += console
#CONFIG -= app_bundle
TEMPLATE = app
INCLUDEPATH += ./inc \
    ../udt
DEFINES += POCO_DLL
win32:LIBS += -lPocoFoundationd \
    -lPocoUtild \
    -lPocoXMLd \
    -lPocoNetd \
    -ludt \
    -lws2_32
unix:LIBS += -lPocoFoundation \
    -lPocoUtil \
    -lPocoXML \
    -lPocoNet \
    -ludt
